package com.situ.day12lianxi4;

public class BankDemo {
	public static void main(String[] args) {
		AccountAdmin accountAdmin = new AccountAdmin();
		System.out.println("存入500元");
		accountAdmin.cunQian(500);
		System.out.println("取出100元");
		try {
			accountAdmin.quQian(100);
		} catch (MeiQianException e) {
			e.printStackTrace();
		}
		System.out.println(accountAdmin.getBalance());
		System.out.println("取出900元");
		try {
			accountAdmin.quQian(900);
		} catch (MeiQianException e) {
			e.printStackTrace();
		}
		
	}

}
